//
//  Global.h
//  BayMaxPuzzle
//
//  Created by Jacky on 15/4/2.
//
//

#ifndef BayMaxPuzzle_Global_h
#define BayMaxPuzzle_Global_h

#include "AudioEngine.h"

const int CHAPTER = 3;
const int SECTION = 8;

#define AUDIOENGINE_PLAY_BK_MUSIC cocos2d::experimental::AudioEngine::play2d("bkMusic.mp3", true, 0.5);
#define AUDIOENGINE_PLAY_BUTTON_FX cocos2d::experimental::AudioEngine::play2d("buttonFx.mp3");
#define AUDIOENGINE_PLAY_MOVE_FX cocos2d::experimental::AudioEngine::play2d("moveFx.mp3");
#define AUDIOENGINE_PLAY_WIN_FX cocos2d::experimental::AudioEngine::play2d("winFx.mp3");
#define AUDIOENGINE_SET_FINISH_CALLBACK(_id, _callback) cocos2d::experimental::AudioEngine::setFinishCallback(_id, [](int, const std::string){_callback();});

#endif
